#include <winsock.h>
#define MY_PORT 3434

int main() {
	SOCKET listen_sock, new_sock;
	struct sockaddr_in my_addr;
	int dummy;
	char *buffer ="How old are you?\n";
	WSADATA wsaData;
	
	WSAStartup(MAKEWORD(1,1),&wsaData);
	
	listen_sock = socket(AF_INET, SOCK_STREAM, 0); 

	my_addr.sin_family = AF_INET;     
	my_addr.sin_port = htons(MY_PORT); 
	my_addr.sin_addr.s_addr = htonl(INADDR_ANY);
    
	bind(listen_sock, (struct sockaddr *)&my_addr, sizeof(struct sockaddr));
	listen(listen_sock, 5);
	new_sock = accept(listen_sock, NULL, &dummy);
	send(new_sock, buffer, strlen(buffer), 0);

	closesocket(new_sock);
	closesocket(listen_sock);
	WSACleanup();

	return 0;
}